package com.ds.infra.rpc.core.serializer;

/**
 * 定义序列化接口
 *
 * @author WeiShaoying
 */
public interface Serializer {

    <T> byte[] serialize(T obj);

    <T> T deserialize(byte[] bytes, Class<T> clazz);
}
